package com.cheng.xbsc.service.impl;

import com.cheng.xbsc.mapper.SysOrderMapper;
import com.cheng.xbsc.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private SysOrderMapper sysOrderMapper;

    /**
     * 查询订单数
     *
     * @return
     */
    @Override
    public Integer countAll(Integer userId) {
        return sysOrderMapper.countAll(userId);
    }
}
